package cl.ufro.dis.Proyecto;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class ExamenesLab extends ListActivity{
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        setContentView(R.layout.ctr_prenatal);
        
		String[] listaExamenesLab = getResources().getStringArray(R.array.lista_examenes02);//es la misma lista que en controlPrenatal
		setListAdapter(new ArrayAdapter<String>(this, R.layout.examenes_lab, listaExamenesLab));
		ListView listado = getListView();
		listado.setTextFilterEnabled(true);
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		
		super.onCreateOptionsMenu(menu);
		MenuInflater inflater = getMenuInflater();
		inflater.inflate(R.menu.menu_examenes_lab, menu);
		return true;
	}	
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		
		switch (item.getItemId()) {
		
			case R.id.glic:
				startActivity(new Intent(this, GraficoExamenesLab.class));
				return true;
		}
		return false;
	}
}
